package com.tao.design.component;

/**
 * @projectName: DesignMode
 * @package: com.tao.design.component
 * @className: Programmer
 * @author: TT_Hugo
 * @description: 定义Leaf类Programmer
 * @date: 2022/12/27 19:57
 * @version: 1.0
 */
public class Programmer extends Employer{
    @Override
    public void add(Employer employer) {

    }

    @Override
    public void delete(Employer employer) {

    }

    public Programmer(String name){
        setName(name);
        //程序员，表示没有下属了
        employers = null;
    }
}
